ofiles := $(patsubst %.cpp,%.o,$(wildcard *.cpp))


all: $(ofiles)
	g++ -g -Wall -shared -lsfml-graphics -lsfml-window -lsfml-system -o se_graphics.so $(ofiles) 
	ar rs se_graphics.a *.o

%.o : %.cpp
	g++ -g -Wall -fpic -c $<

clean:
	-rm -f *.o *.so
